<template>
  <div>
    <h3>这是Child组件</h3>
    <button @click="handCount(5)">点击修改父组件的count</button>
  </div>
</template>

<script>
export default {
  name:"Child",
  methods:{
    handCount(value){
      this.$emit("changeCount",value)
    }
  }
}
</script>

<style>

</style>